package com.zytech.zspider.task;

import com.zytech.zspider.core.TaskDefinition;
import com.zytech.zspider.core.TaskGenDefinition;

import java.util.List;

/**
 * @author siuming
 */
public interface TaskGenerator {

    /**
     * @param context
     * @param def
     * @return
     */
    List<TaskDefinition> generateTasks(TaskContext context,
                                       TaskGenDefinition def);
}
